package com.itheima.tlias84.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 学生类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Component("zhangsan")
public class Student {
    private int id;
    private String name;
    /**
     * 学号
     */
    private String no;
    private Integer gender;
    private String phone;
    private String idCard;
    private Integer isCollege;
    private String address;
    private Integer degree;
    /**
     * 违纪次数
     */
    private int violationCount;
    /**
     * 违纪扣分
     */
    private int violationScore;
    private LocalDate graduationDate;
    private int clazzId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
